package com.itms.tool.data;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class ObjectTopic {

	@DatabaseField(generatedId = true)
	private int id;
	@DatabaseField(foreign = true, foreignAutoRefresh = true)
	private Object object;
	@DatabaseField(foreign = true, foreignAutoRefresh = true)
	private Topic topic;

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

	public Topic getTopic() {
		return topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	public int getId() {
		return id;
	}
	
	@Override
	public String toString() {
		return "ObjectTopic[object=" + object + "\ntopic=" + topic + "]"; 
	}
	
}
